try:

    x1 = eval(input("请输入整数x1："))
    x2 = eval(input("请输入整数x2："))

    print('{} ÷ {} = {} '.format(x1, x2, x1/x2))
    
except NameError:
    print('输入错误，请输入整数')

except ZeroDivisionError:
    print('0不能为除数')
